#ifndef WIDGET_REPLAY_H
#define WIDGET_REPLAY_H



#include "gui.h"


/** @brief Gui class for loading files for replay.
*
*   \image html widget_play.jpeg
*/
class replay_widget:public QWidget
{

	Q_OBJECT

public:

	/** @brief Creates part of the gui
	*	@param parent Qt parent
	*	@param flags Qt flags
	*/
	replay_widget( QWidget* parent = 0, Qt::WindowFlags flags = 0 );


private:

	//! widget layout
	QVBoxLayout* layout;
	//! input field for players and commands file filename
	QLineEdit* players_i;
	//! input field for map filename
	QLineEdit* map_i;
	//! input field for objects file filename
	QLineEdit* object_i;
	//! load players commands filename button
	QPushButton* players_filename_b;
	//! load map filename button
	QPushButton* map_filename_b;
	//! load saved objects filename button
	QPushButton* object_filename_b;
	//! load players button
	QPushButton* players_b;
	//! load map button
	QPushButton* map_b;
	//! load objects button
	QPushButton* object_b;
	//! button NEXT
	QPushButton* next_b;


private slots:
	
	//! @brief Qt slot that jumps to next buy screen, or play widget and starts game, when all players are ready
	void next();
	//! @brief Qt slot that loads map filename
	void load_filename_map();
	//! @brief Qt slot that loads players commands filename
	void load_filename_players();
	//! @brief Qt slot that loads saved objects filename
	void load_filename_objects();
	//! @brief Qt slot that loads map
	void load_map();
	//! @brief Qt slot that loads players and their commands
	void load_players();
	//! @brief Qt slot that loads saved objects
	void load_objects();

};



#endif